<template>
  <div class="about">
    <h2>about页面</h2>
    <p>vuex的数据:{{ store.state.vuexnum }}</p>
    <p>计算属性得到数据:{{ comVuexNum }}</p>
  </div>
</template>

<script setup>
import { useStore } from 'vuex';
// vue中进行获取
import { computed } from 'vue';
// 通过store获取实例
const store = useStore()

let comVuexNum = computed(() => store.state.vuexnum

)

</script>
